package observer_pattern;

import java.util.Observable;

/**
 * @author liwuji
 * @date 2023/12/26
 * @desc
 **/
public class ObserverPatternDemo {
    public static void main(String[] args) {
        OctalObserver observable = new OctalObserver();
        BinaryObserver binaryObserver = new BinaryObserver();
        HexaObserver hexaObserver = new HexaObserver();
        observable.addObserver(binaryObserver);
        observable.addObserver(hexaObserver);
        observable.setDemo("user");

    }
}
